<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li>
								选手名称：<input type="text" name="uid"/>
							</li>

							<li>
								竞赛编号：<input type="text" name="contestId"/>
							</li>

							<li>
								是否锁定：<input type="text" name="defunct"/>
							</li>

							<li>
								已解题量：<input type="text" name="solved"/>
							</li>

							<li>
								合计得分：<input type="text" name="score"/>
							</li>

							<li>
								罚分：<input type="text" name="penalty"/>
							</li>

							<li>
								A题耗时：<input type="text" name="aTime"/>
							</li>

							<li>
								A题有错提交次数：<input type="text" name="aWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="bTime"/>
							</li>

							<li>
								：<input type="text" name="bWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="cTime"/>
							</li>

							<li>
								：<input type="text" name="cWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="dTime"/>
							</li>

							<li>
								：<input type="text" name="dWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="eTime"/>
							</li>

							<li>
								：<input type="text" name="eWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="fTime"/>
							</li>

							<li>
								：<input type="text" name="fWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="gTime"/>
							</li>

							<li>
								：<input type="text" name="gWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="hTime"/>
							</li>

							<li>
								：<input type="text" name="hWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="iTime"/>
							</li>

							<li>
								：<input type="text" name="iWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="jTime"/>
							</li>

							<li>
								：<input type="text" name="jWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="kTime"/>
							</li>

							<li>
								：<input type="text" name="kWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="lTime"/>
							</li>

							<li>
								：<input type="text" name="lWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="mTime"/>
							</li>

							<li>
								：<input type="text" name="mWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="nTime"/>
							</li>

							<li>
								：<input type="text" name="nWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="oTime"/>
							</li>

							<li>
								：<input type="text" name="oWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="pTime"/>
							</li>

							<li>
								：<input type="text" name="pWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="qTime"/>
							</li>

							<li>
								：<input type="text" name="qWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="rTime"/>
							</li>

							<li>
								：<input type="text" name="rWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="sTime"/>
							</li>

							<li>
								：<input type="text" name="sWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="tTime"/>
							</li>

							<li>
								：<input type="text" name="tWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="uTime"/>
							</li>

							<li>
								：<input type="text" name="uWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="vTime"/>
							</li>

							<li>
								：<input type="text" name="vWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="wTime"/>
							</li>

							<li>
								：<input type="text" name="wWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="xTime"/>
							</li>

							<li>
								：<input type="text" name="xWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="yTime"/>
							</li>

							<li>
								：<input type="text" name="yWrongsubmits"/>
							</li>

							<li>
								：<input type="text" name="zTime"/>
							</li>

							<li>
								：<input type="text" name="zWrongsubmits"/>
							</li>

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm hidden-xs" id="toolbar" role="group">
				<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="acm:attend:add">
					<i class="fa fa-plus"></i> 添加
				</a>
				<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="acm:attend:edit">
					<i class="fa fa-edit"></i> 修改
				</a>
				<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="acm:attend:remove">
					<i class="fa fa-remove"></i> 删除
				</a>
				<!--<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="acm:attend:export">
						<i class="fa fa-download"></i> 导出
				 </a>-->
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var prefix = ctx + "acm/attend";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export",
                modalName: "acm竞赛提交，最多26题（A-Z）",
				search: false,
		        showExport: true,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'id', 
					title : '编号',
					visible: false
				},
				{
					field : 'uid', 
					title : '选手名称',
					sortable: true
				},
				{
					field : 'contestId', 
					title : '竞赛编号',
					sortable: true
				},
				{
					field : 'defunct', 
					title : '是否锁定',
					sortable: true
				},
				{
					field : 'solved', 
					title : '已解题量',
					sortable: true
				},
				{
					field : 'score', 
					title : '合计得分',
					sortable: true
				},
				{
					field : 'penalty', 
					title : '罚分',
					sortable: true
				},
				{
					field : 'aTime', 
					title : 'A题耗时',
					sortable: true
				},
				{
					field : 'aWrongsubmits', 
					title : 'A题有错提交次数',
					sortable: true
				},
				{
					field : 'bTime', 
					title : '',
					sortable: true
				},
				{
					field : 'bWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'cTime', 
					title : '',
					sortable: true
				},
				{
					field : 'cWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'dTime', 
					title : '',
					sortable: true
				},
				{
					field : 'dWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'eTime', 
					title : '',
					sortable: true
				},
				{
					field : 'eWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'fTime', 
					title : '',
					sortable: true
				},
				{
					field : 'fWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'gTime', 
					title : '',
					sortable: true
				},
				{
					field : 'gWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'hTime', 
					title : '',
					sortable: true
				},
				{
					field : 'hWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'iTime', 
					title : '',
					sortable: true
				},
				{
					field : 'iWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'jTime', 
					title : '',
					sortable: true
				},
				{
					field : 'jWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'kTime', 
					title : '',
					sortable: true
				},
				{
					field : 'kWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'lTime', 
					title : '',
					sortable: true
				},
				{
					field : 'lWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'mTime', 
					title : '',
					sortable: true
				},
				{
					field : 'mWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'nTime', 
					title : '',
					sortable: true
				},
				{
					field : 'nWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'oTime', 
					title : '',
					sortable: true
				},
				{
					field : 'oWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'pTime', 
					title : '',
					sortable: true
				},
				{
					field : 'pWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'qTime', 
					title : '',
					sortable: true
				},
				{
					field : 'qWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'rTime', 
					title : '',
					sortable: true
				},
				{
					field : 'rWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'sTime', 
					title : '',
					sortable: true
				},
				{
					field : 'sWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'tTime', 
					title : '',
					sortable: true
				},
				{
					field : 'tWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'uTime', 
					title : '',
					sortable: true
				},
				{
					field : 'uWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'vTime', 
					title : '',
					sortable: true
				},
				{
					field : 'vWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'wTime', 
					title : '',
					sortable: true
				},
				{
					field : 'wWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'xTime', 
					title : '',
					sortable: true
				},
				{
					field : 'xWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'yTime', 
					title : '',
					sortable: true
				},
				{
					field : 'yWrongsubmits', 
					title : '',
					sortable: true
				},
				{
					field : 'zTime', 
					title : '',
					sortable: true
				},
				{
					field : 'zWrongsubmits', 
					title : '',
					sortable: true
				},
		        {
		            title: '操作',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	var actions = [];
		            	actions.push('<a class="btn btn-success btn-xs " href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs " href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
						return actions.join('');
		            }
		        }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>